home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Snippets / MMapp / MMapp.h < prev    next >
Encoding:
Text File  |  1996-10-25  |  980 b   |  32 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    PP Basic Starter.h        ©1994-1996 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LApplication.h>
  8. #include <LListener.h>
  9.  
  10.  
  11. class LWindow;
  12.  
  13. class    MMapp : public LApplication,
  14.                 public LListener {
  15. public:
  16.                         MMapp();        // constructor registers all PPobs
  17.     virtual             ~MMapp();        // stub destructor
  18.     
  19.         // this overriding function performs application functions
  20.         
  21.     virtual Boolean        ObeyCommand(CommandT inCommand, void* ioParam);    
  22.     
  23.         // this overriding function returns the status of menu items
  24.         
  25.     virtual void        FindCommandStatus(CommandT inCommand,
  26.                             Boolean &outEnabled, Boolean &outUsesMark,
  27.                             Char16 &outMark, Str255 outName);
  28.     virtual void        ListenToMessage(MessageT theMessage, void *ioParam );
  29. protected:
  30.     LWindow                *MM_Window;
  31.     virtual void        StartUp();        // overriding startup functions
  32. };